//
//  ColorPickerBoot.swift
//  SwiftUIWidgetDemo
//
//  Created by alanzhangg on 2023/7/17.
//

import SwiftUI

struct ColorPickerBoot: View {
    @State var backgroundColor: Color = .green
    var body: some View {
        
        ZStack{
            backgroundColor
                .ignoresSafeArea()
            
            ColorPicker("selected a Color", selection: $backgroundColor, supportsOpacity: true)
                .padding()
        }
    }
}

#Preview {
    ColorPickerBoot()
}
